package top.codecrab.eblog;

import cn.smallbun.screw.core.engine.EngineFileType;
import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceWrapper;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import top.codecrab.eblog.utils.DbDocUtil;

/**
 * @author 王刚
 * @since 2022年08月24日 11:16
 */
@SpringBootTest
public class DbDocGenerator {

    @Autowired
    private DruidDataSourceWrapper druidDataSourceWrapper;

    @Test
    void generatorHtml() {
        DbDocUtil.documentGeneration("doc/test", EngineFileType.HTML, druidDataSourceWrapper);
    }

}
